#include <stdio.h>
#include <string.h>

int main(int argc, char* argv[])
{
  if(argc != 2)
  {
    printf("error\n");
    return 1;
  }

  FILE *pf = fopen(argv[1], "r");
  if(pf != NULL)
  {
    while(1)
    {
      char buff[2024];
      size_t s = fread(buff, 1, sizeof(buff), pf);
      if(s > 0)
      {
        buff[s] = 0;
        printf("%s", buff);

      }
      if(feof(pf)) break;
    }
  }

  fclose(pf);
  return 0;
}
